<h3>编辑链接</h3>

<% form_for(@link,:html=>{:multipart=>true}) do |f| %>
  <%= f.error_messages %> 
  <p>
    <%= f.label :name ,"网站名" %><br />
    <%= f.text_field :name %>*
  </p>
  <p>
    <%= f.label :address ,"网址"%><br />
    <%= f.text_field :address %>*
  </p>
  <p>
    <%= f.label :img ,"图像"%><br />
    <%= f.file_field :image %>
  </p>
  <p>
    <%= f.label :description ,"描述"%><br />
    <%= f.text_field :description %>
  </p>
  <p>
    <%= f.label :auditing_state ,"是否通过"%><br />
    <%= f.check_box :auditing_state %>
  </p>
  <p>
    <%= f.label :link_order ,"链接排序"%><br />
    <%= f.text_field :link_order %>
  </p>
  <p>
    <%= f.submit "更新" %>
  </p>
<% end %>


